package com.apes.oap.response;

public class OapResponse<T extends Object> {

	protected OapResponseHeader header = new OapResponseHeader();

	protected T body;

	public OapResponse() {
	}

	public OapResponse(String code) {
		this.header.setCode(code);
	}

	public OapResponse(OapResponseHeader header) {
		this.header = header;
	}

	public T getBody() {
		return body;
	}

	public OapResponse<T> setBody(T body) {
		this.body = body;
		return this;
	}

	public OapResponseHeader getHeader() {
		return header;
	}

	public OapResponse<T> setHeader(OapResponseHeader header) {
		this.header = header;
		return this;
	}

}
